%option noyywrap
%{ 
#include<stdio.h>
#include<stdlib.h>
#include<set>
#include<string>
#include<iostream>
using namespace std;
int count=0;
long long temp=0;
char id[10]="201492173";
char name[10]="HYH";
set<long long> a;
%}
num [0-9]
number ^{num}{9}
operation {num}+(\.{num}+)?

%%

{number} { printf("%s",id); }
NAME$    { printf("%s",name);}
{operation} {temp=(long long)(atof(yytext)*2+201492173);
             cout<<temp;
	     count++;
	     a.insert(temp);
	     }
.		{cout<<yytext;}

%%

int main()
{    yylex();
     printf("出现次数：%d\t去重后次数：%d",count,a.size());
     return 0;
     }
